package com.ler.yrmall.product.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ler.yrmall.product.dto.SpuDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Leron
 * @version 1.0
 * 客户端商品页面vo
 */
@Data
public class SpuViewVO implements Serializable {

    /**
     * spu 基本信息
     */
    private SpuDTO info;

    /**
     * spu 图片信息
     */
    private List<SpuImagesVO> images;

    /**
     * spu 描述信息
     */
    private SpuInfoDetailVO desc;

    /**
     * spu 规格(基础属性)
     */
    private List<SpuBaseAttrGroupVO> groupAttrs;

    /**
     * sku属性
     */
    private List<SkuItemSaleAttrVO> spuSaleAttrs;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private SpuSaleMinPriceVO saleMinPrice;

}
